-
Notifications
You must be signed in to change notification settings - Fork 385
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update AMP validator spec to 2011140244000 #5608
Conversation
afc011b
to
7c518f8
Compare
@swissspidy do you need any of the story-related spec changes any time soon? |
Plugin builds for c506569 are ready 🛎️!
|
I don't think so! Thanks for asking 👍 |
4839a5f
to
8425493
Compare
@@ -39,7 +39,7 @@ fi | |||
if [[ -n $INSTALL_PWA_PLUGIN ]]; then | |||
echo -n "Installing PWA plugin..." | |||
wget -O "$WP_CORE_DIR/src/wp-content/plugins/pwa.zip" https://downloads.wordpress.org/plugin/pwa.zip | |||
unzip -d "$WP_CORE_DIR/src/wp-content/plugins/pwa/" "$WP_CORE_DIR/src/wp-content/plugins/pwa.zip" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How did you come across this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Noticed a series of skipped tests in the PHPUnit output, and traced it back to the Test_AMP_Service_Worker
class being skipped. Those tests are only skipped when the PWA plugin is not active.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The PWA plugin was being extracted to the directory $WP_CORE_DIR/src/wp-content/plugins/pwa/pwa
, which didn't match the hardcoded path used to activate the plugin.
Yeah, I was not able to reproduce it locally either. Nevertheless, it is better that the test has a global |
Yea that's a plus. |
Would we need to wait on a spec release that includes ampproject/amphtml#31241? |
We can wait, but I'll do an update again anyway before we do 2.1, so it's not necessary. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes match changelog 👍
Previously #5356.
./bin/amphtml-update.sh
(lando ssh -c 'bash ./bin/amphtml-update.sh vendor/amphtml'
).Update spec generator as needed based on spec format changes.Modify validating sanitizer based on changes to spec, if needed.Changelog
prefetch
attribute toamp-autocomplete
.amp-onetap-google
component.intrinsic
layout toamp-video
. See ✨ amp-video: Add intrinsic to supported_layouts amphtml#28349. Note this PR does not switchamp-video
to useintrinsic
instead ofresponsive
layout because video blocks in WordPress are displayed responsively.allow_relative
fromnoscript > img
.Stories
span
in addition toa
as child ofamp-story-player
.amp-story-interactive-results
:chip-style
andoption-[1-4]-results-threshold
. Nevertheless, there is a bug in thevalue_regex
. See 🐛 Fix value_regex for decimal option-*-results-threshold attr values amphtml#31241.amp-story-360
:controls
,scene-heading
,scene-pitch
, andscene-roll
.responsive
layout.amp-video
child in addition toamp-img
.1.0
with0.1
foramp-story-interactive
component versions.Details
2008290323001...2011140244000